'use strict'

define(['jquery', 'bootstrap', 'select2'], function($, validate) {
 
  return {
    
    init: function() {
      this.initPage();
    },
    
    initPage: function() {
    	
      $(document).find('form').bind('reset', function(e){
          $(this).find(".select2").select2("val", "");
    	})
      
      $('select[name="status"]').select2({
        theme: "classic",
        placeholder : '请选择',
        minimumResultsForSearch : -1,
        allowClear : true,
      });
      
      $('select[name="type"]').select2({
        theme: "classic",
        placeholder : '请选择',
        minimumResultsForSearch : -1,
        allowClear : true,
      });
      
      $('select[name="level"]').select2({
        theme: "classic",
        placeholder : '请选择',
        minimumResultsForSearch : -1,
        allowClear : true,
      });
      
    }
    
  }
  
})